package com.cn;

import com.cn.configuration.ServiceLocator;
import com.cn.service.DataSourceService;

import java.lang.reflect.Field;

/**
 * @author chenming
 * Date  2022/9/23 16:38
 * @version 1.0
 * description
 */
public class Test {
    public static void main(String[] args) {
        DataSourceService service = ServiceLocator.getService("AttackServiceImpl");
        service.execute();
        service = ServiceLocator.getService("DataSourceServiceImpl");
        service.execute();
        service = ServiceLocator.getService("AttackServiceImpl");
        service.execute();
        service = ServiceLocator.getService("DataSourceServiceImpl");
        service.execute();
    }

}
